//
//  TextController.m
//  BrushFace
//
//  Created by 吕海瑞 on 15/12/29.
//  Copyright © 2015年 Zzz. All rights reserved.
//

#import "TextController.h"

@interface TextController ()

@end

@implementation TextController

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    UIButton *rightBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [rightBtn addTarget:self action:@selector(rightBtnClick) forControlEvents:UIControlEventTouchUpInside];
    [rightBtn setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
//    rightBtn.frame = CGRectMake(-10, 30, 40, 30);
    switch (_vcType)
    {
            
        case nickName:
        {
            [self.navBar setTitle:@"昵称"];
            [self.navBar setRightView:rightBtn];
            [rightBtn setTitle:@"保存" forState:UIControlStateNormal];
        }
            break;
        case callingType:
        {
            [self.navBar setRightView:rightBtn];
            [rightBtn setTitle:@"完成" forState:UIControlStateNormal];
        }
            break;
        default:
            break;
    }
    [self.navBar setLeftBtn:NAV_BAR_LEFT_BTN_TYPE_BLUE];
}


-(void)rightBtnClick
{


}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
